#include "comm.hpp"
#define SIZE 1024

int main()
{
    int fd = open(FIFO_FILE, O_WRONLY);
    if (fd < 0)
    {
        perror("open_error::");
        exit(FIFO_OPEN_ERROR);
    }

    std::string line;
    while (true)
    {
        std::cout << "you say# "; getline(std::cin, line);
        write(fd, line.c_str(), line.size());
    }

    close(fd);
    return 0;
}

